package com.micro.school.common.core.utils;

import java.util.function.Function;

public enum SensitiveUtils {

    IDCARD_EN_SENSITIVE(s -> s.replaceAll("(\\d{10})", "$1********"));

    private final Function<String, String> function;

     SensitiveUtils(Function<String, String> function) {
        this.function = function;
    }

    public Function<String, String> function(){
        return function;
    }

}
